﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0" default-cascade="save-update" default-lazy="false">
  <class name="MeetingRoom.Domain.MeetingRoom, MeetingRoom.Domain">
    <id name="Id" type="Int32" column="meetingroom_id">
      <generator id="sequence"/>
    </id>
    <property name="Name" type="string" column="name"/>
    <property name="MeetingRoomType" type="MeetingRoom.Domain.MeetingRoomType">
      <key column="meetingroomtype_id"></key>
      <one-to-one class="MeetingRoom.Domain.MeetingRoom, MeetingRoom.Domain"/>
    </property>
  </class>
  <class name="MeetingRoom.Domain.MeetingRoomType, MeetingRoom.Domain">
    <id name="Id" type="Int32" column="meetingroomtype_id">
      <generator id="sequence"/>
    </id>
    <property name="Size" type="Int32" column="size">
    </property>
    <property name="Count" type="Int32" column="count">
    </property>
  </class>
</hibernate-mapping>
